// separator
.popup-separator-menu-item {
- //-margin-horizontal: 24px;
- height: 1px; //not really the whole box
- margin: 6px 64px;
- background-color: lighten($borders_color, 2%);
- .popup-sub-menu & { //submenu separators
- @if $variant == 'dark' {
- background-color: lighten($bg_color,10%);
+ padding: 0;
+
+ .popup-separator-menu-item-separator {
+ //-margin-horizontal: 24px;
+ height: 1px; //not really the whole box
+ margin: 6px 64px;
+ background-color: lighten($borders_color, 2%);
+ .popup-sub-menu & { //submenu separators
+ @if $variant == 'dark' {
+ background-color: lighten($bg_color,10%);
+ }
}
}
}
var PopupSeparatorMenuItem = GObject.registerClass(
class PopupSeparatorMenuItem extends PopupBaseMenuItem {
_init(text) {
- super._init({ reactive: false,
- can_focus: false });
+ super._init({
+ style_class: 'popup-separator-menu-item',
+ reactive: false,
+ can_focus: false,
+ });
this.label = new St.Label({ text: text || '' });
this.add(this.label);
this._syncVisibility.bind(this));
this._syncVisibility();
- this._separator = new St.Widget({ style_class: 'popup-separator-menu-item',
- x_expand: true,
- y_expand: true,
- y_align: Clutter.ActorAlign.CENTER });
+ this._separator = new St.Widget({
+ style_class: 'popup-separator-menu-item-separator',
+ x_expand: true,
+ y_expand: true,
+ y_align: Clutter.ActorAlign.CENTER,
+ });
this.add_child(this._separator);
}